package miracle.joker.design.interpreter;

public class NumberExpression implements Expression {
    private int value;

    public NumberExpression(int value) {
        this.value = value;
    }

    public int interpret() {
        return value;
    }

    @Override
    public String toString() {
        return "NumberExpression{" +
                "value=" + value +
                '}';
    }
}
